
var index = 3;
function addSizeHtml(){
	index++;
	var sizehtml = '';
	sizehtml+='<div class="layui-inline" id="sizehtml'+index+'">';
	sizehtml+='<label class="layui-form-label"></label>';
	sizehtml+='<div class="layui-input-inline" style="width: 100px;">';
	sizehtml+='<input type="text" id="proSize" name="proSize" placeholder="XXL" autocomplete="off" class="layui-input">';
	sizehtml+='</div>';
	sizehtml+='<div class="layui-form-mid">-</div>';
	sizehtml+='<div class="layui-input-inline" style="width: 200px;">';
	sizehtml+='<input type="text" id="proSizeDesc" name="proSizeDesc" placeholder="XXL/建议体重100-130斤穿" autocomplete="off" class="layui-input">';
	sizehtml+='</div>';
	sizehtml+='<button class="layui-btn layui-btn-danger layui-btn-sm" onclick="deleteSizeHtml('+index+')"><i class="layui-icon"></i></button>';
	sizehtml+='<br>';
	sizehtml+='</div>';
	$("#sizehtml").append(sizehtml);
}

function deleteSizeHtml(divid){
	$("#sizehtml"+divid).remove();
}